<?php
session_start();
if (isset($_SESSION['user_id']) && $_SESSION['spec_captcha']===false){

    include_once "../../../classes/cms_admin.php";
    $CMS_A = new cms_admin();
    $result['flag'] = $CMS_A->move_item($_REQUEST['id'], $_REQUEST['flag']);
//    echo($result['flag']);
    if ($result['flag']){
        $result = array(
            'error' => 0,
            'rows' => $result['flag']
        );
    }else{
        $result['error'] = mysql_error();
    }
}else{
    $result = array(
        'error' => 1,
        'description' => "no auth"
    );
}

echo json_encode($result);
?>